<!DOCTYPE html>
<html lang="zh-Hans-CN">
<head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="../vue.js"></script>
</head>
<body>
<h2>【例33】Vue生命周期:页面挂载---渲染插值表达式</h2>
<hr>
<div id="app"><h3>姓名：{{姓名}}</h3></div>
<script>
    let vm = new Vue({
        el: '#app',
        data: {姓名: '陈林杰'},
        beforeMount() {
            console.log('挂载之前');
            console.log(this.$el.innerHTML)
        },
        mounted() {
            console.log('挂载之后');
            console.log(this.$el.innerHTML)
        }
    })
</script>
<hr>
<p><a href="index.html">返回章节目录</a>
    <script>document.write(document.lastModified); </script>
</p>
</body>
</html>
